# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper  
  def action_fileter(config)
    if @user.juese == "学生"
      config.actions.exclude :create
    end
  end
  
  def determin_config(config)
    if session[:user].juese == "学生"
      config.actions.exclude :create ,:search,:live_serch
    end
  end
end
